module.exports = function ($scope, $resource, $modal, toaster) {
	
    $scope.loadlist = function(){
		$resource('/api/as/gc/shakeevaluateanswer/getAnswerByPlaceList', {}, {}).save({}, function (res) {
			if (res.errcode === 0) {
				$scope.objs = res.data;
			} else {
				toaster.error({ title: '', body: '无景区服务评价统计信息'});
			}
		});
	}
    $scope.loadlist();
	
	$scope.getInfo = function(obj){
		var modalInstance = $modal.open({
        	template: require('../views/serviceInfoByPlaceCode.html'),
        	controller: 'serviceInfoByPlaceCode',
        	size: 'lg',
        	resolve: {
				item: function () {
					return obj;
				}
        	}
        });
	}

};